Ext.onReady(function()
{
	Ext.tip.QuickTipManager.init();
	//initQueryPanel();
	initGrid();
	//var mydiv = document.getElementById('griddiv');
	//var computedStyle = document.defaultView.getComputedStyle(mydiv, null);
    //alert("width="+computedStyle.width);     //"100px"
    //alert("height="+computedStyle.height);   //"200px"
});
function initQueryPanel()
{
	//创建编辑panel
		var filterPanel = Ext.create('Ext.panel.Panel', {
		    bodyPadding: 5,  // Don't want content to crunch against the borders
		    width: '100%',
			//height: '100%',
			border: false,
		    title: '编辑',
		    layout: {
	        	type: 'vbox',
	        	align: 'stretch'
	    	 },
		    items: [					
					
					   {
						   xtype: 'fieldset',
						   layout:'hbox',
						   flex: 1,
						   border: false,
						   items:[
									
									{xtype: 'textfield',anchor:'96%',id:'nicheng',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'昵称', width:200,allowBlank: false},
									{xtype: 'textfield',anchor:'100%',id:'zczb',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'姓名',width:200},
									{
										id: 'djzclx23',
										anchor:'100%',
										xtype: 'combo',
										width: 200,
										style:'color:blue;',
										fieldLabel: '性别',
										lazyInit: false,
										labelStyle:'text-align:center;',
										labelWidth : 60,
										typeAhead: true,
										allowBlank:false,
										mode: 'remote',
										store: new Ext.data.ArrayStore
										({
											fields: [
														'key',
														'value'
													],
											data: [[1, '男'], [2, '女']]
										}),
										displayField: 'value',
										valueField: 'key'
									},
									{xtype: 'textfield',anchor:'100%',id:'zch132221',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'生日', width:200,allowBlank: false},
									{xtype: 'textfield',anchor:'100%',id:'zch1325454',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'邮箱', width:200,allowBlank: false}
									
								 ]
					   }
		            ],
		    renderTo: 'griddiv'
		});
}
function initGrid()
{
	Ext.define('TestModel',{
	    extend: 'Ext.data.Model',
	    /*proxy: {
	    type: 'ajax',
	    reader: 'xml'
	},*/
	    fields: [
	       {name: 'company'},
	       {name: 'price',      type: 'float', convert: null,     defaultValue: undefined},
	       {name: 'change',     type: 'float', convert: null,     defaultValue: undefined},
	       {name: 'pctChange',  type: 'float', convert: null,     defaultValue: undefined},
	       {name: 'lastChange', type: 'date',  dateFormat: 'n/j h:ia', defaultValue: undefined}
	    ],
	    idProperty: 'company'
	});
	var myData = [
	              ['3m Co',                               71.72, 0.02,  0.03,  '9/1 12:00am'],
	              ['Alcoa Inc',                           29.01, 0.42,  1.47,  '9/1 12:00am'],
	              ['Altria Group Inc',                    83.81, 0.28,  0.34,  '9/1 12:00am'],
	              ['American Express Company',            52.55, 0.01,  0.02,  '9/1 12:00am'],
	              ['American International Group, Inc.',  64.13, 0.31,  0.49,  '9/1 12:00am'],
	              ['AT&T Inc.',                           31.61, -0.48, -1.54, '9/1 12:00am'],
	              ['Boeing Co.',                          75.43, 0.53,  0.71,  '9/1 12:00am'],
	              ['Caterpillar Inc.',                    67.27, 0.92,  1.39,  '9/1 12:00am'],
	              ['Citigroup, Inc.',                     49.37, 0.02,  0.04,  '9/1 12:00am'],
	              ['E.I. du Pont de Nemours and Company', 40.48, 0.51,  1.28,  '9/1 12:00am'],
	              ['Exxon Mobil Corp',                    68.1,  -0.43, -0.64, '9/1 12:00am'],
	              ['General Electric Company',            34.14, -0.08, -0.23, '9/1 12:00am'],
	              ['General Motors Corporation',          30.27, 1.09,  3.74,  '9/1 12:00am'],
	              ['Hewlett-Packard Co.',                 36.53, -0.03, -0.08, '9/1 12:00am'],
	              ['Honeywell Intl Inc',                  38.77, 0.05,  0.13,  '9/1 12:00am'],
	              ['Intel Corporation',                   19.88, 0.31,  1.58,  '9/1 12:00am'],
	              ['International Business Machines',     81.41, 0.44,  0.54,  '9/1 12:00am'],
	              ['Johnson & Johnson',                   64.72, 0.06,  0.09,  '9/1 12:00am'],
	              ['JP Morgan & Chase & Co',              45.73, 0.07,  0.15,  '9/1 12:00am'],
	              ['McDonald\'s Corporation',             36.76, 0.86,  2.40,  '9/1 12:00am'],
	              ['Merck & Co., Inc.',                   40.96, 0.41,  1.01,  '9/1 12:00am'],
	              ['Microsoft Corporation',               25.84, 0.14,  0.54,  '9/1 12:00am'],
	              ['Pfizer Inc',                          27.96, 0.4,   1.45,  '9/1 12:00am'],
	              ['The Coca-Cola Company',               45.07, 0.26,  0.58,  '9/1 12:00am'],
	              ['The Home Depot, Inc.',                34.64, 0.35,  1.02,  '9/1 12:00am'],
	              ['The Procter & Gamble Company',        61.91, 0.01,  0.02,  '9/1 12:00am'],
	              ['United Technologies Corporation',     63.26, 0.55,  0.88,  '9/1 12:00am'],
	              ['Verizon Communications',              35.57, 0.39,  1.11,  '9/1 12:00am'],
	              ['Wal-Mart Stores, Inc.',               45.45, 0.73,  1.63,  '9/1 12:00am']
	          ];
	var store = Ext.create('Ext.data.ArrayStore', {
        model: 'TestModel',
        data: myData
    });
	var grid = Ext.create('Ext.grid.Panel', {
		tbar: [
			{text:'添 加',iconCls:'addicon', disabled: false, handler:'',width: 70},
			'-',
			{text:'编 辑',iconCls:'edit', disabled: false,  handler:'',width: 70},
			'-',
			{text:'统 计',iconCls:'stat', disabled: false, handler:'',width: 70},
			'-',
			{text:'排 序',iconCls:'delete', disabled: false, handler:'',width: 70},
			'-',
			{text:'导 出',iconCls:'xlsicon', disabled: false, handler:'',width: 70}
		],
        store: store,
		pageSize:20,
		dockedItems: [{
        xtype: 'pagingtoolbar',
        store: store,   // same store GridPanel is using
        dock: 'bottom',
        displayInfo: true
		}],
        stateful: true,
        //collapsible: true,
        multiSelect: true,
        stateId: 'stateGrid',
        columns: [
            {
                text     : '账号',
                flex     : 1,
                align:'center',
                sortable : false,
                dataIndex: 'company'
            },
            {
                text     : '姓名',
                flex     : 1,
                align:'center',
                sortable : true,
                renderer : 'usMoney',
                dataIndex: 'price'
            },
            {
                text     : '性别',
                flex     : 1,
                align:'center',
                sortable : true,
                //renderer : change,
                dataIndex: 'change'
            },
            {
                text     : '生日',
                flex     : 1,
                align:'center',
                sortable : true,
                //renderer : pctChange,
                dataIndex: 'pctChange'
            },
            {
                text     : '注册网址',
                flex     : 2,
                align:'center',
                sortable : true,
                //renderer : Ext.util.Format.dateRenderer('m/d/Y'),
                dataIndex: 'lastChange'
            },
            {
                text     : '注册IP',
                flex     : 2,
                align:'center',
                sortable : true,
                //renderer : Ext.util.Format.dateRenderer('m/d/Y'),
                dataIndex: 'lastChange'
            },
            {
                text     : '注册时间',
                flex     : 1,
                align:'center',
                sortable : true,
                //renderer : Ext.util.Format.dateRenderer('m/d/Y'),
                dataIndex: 'lastChange'
            },
            {
                text     : '级别',
                flex     : 1,
                align:'center',
                sortable : true,
                //renderer : Ext.util.Format.dateRenderer('m/d/Y'),
                dataIndex: 'lastChange'
            },
            {
                text     : '状态',
                flex     : 1,
                align:'center',
                sortable : true,
                //renderer : Ext.util.Format.dateRenderer('m/d/Y'),
                dataIndex: 'lastChange'
            },
            {
            	text     : '操作',
            	menuDisabled: true,
                sortable: false,
                xtype: 'actioncolumn',
                width: 50,
                items: [{
                    icon   : 'images/edt.gif',  // Use a URL in the icon config
                    tooltip: '编辑',
                    handler: function(grid, rowIndex, colIndex) {
                        //var rec = store.getAt(rowIndex);
                        //alert("Sell " + rec.get('company'));
                    	editRecord(store.getAt(rowIndex));
                    }
	                },
	                {
	                    icon   : 'images/del.gif',  // Use a URL in the icon config
	                    tooltip: '删除',
	                    handler: function(grid, rowIndex, colIndex) {
	                        var rec = store.getAt(rowIndex);
	                        alert("Sell " + rec.get('company'));
	                    }
	                }
	                ]
            }
        ],
        height: '100%',
        width: '100%',
        renderTo: 'griddiv',
        viewConfig: {
            stripeRows: true,
            enableTextSelection: true
        }
    });
	grid.on('itemdblclick',function(){/*alert(grid.getSelectionModel().getLastSelected().get('company'));*/editRecord();});
	
	//edit selected record
	function editRecord(record)
	{
		//隐藏griddiv
		$("#griddiv").hide();
		//显示editdiv
		$("#editdiv").show();
        //alert("Sell " + record.get('company'));
		//创建编辑panel
		var filterPanel = Ext.create('Ext.panel.Panel', {
		    bodyPadding: 5,  // Don't want content to crunch against the borders
		    width: '100%',
			//height: '100%',
			border: false,
		    title: '编辑',
		    layout: {
	        	type: 'vbox',
	        	align: 'stretch'
	    	 },
		    items: [					
					{
				        	   //columnWidth: .5,
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
							   //frame: true,
				        	   border: false,
				        	   //height:215,
				        	   items:[
										{
											id: 'currency',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
										    fieldLabel: '货币',
										    lazyInit: false,
											labelWidth : 60,
											labelStyle:'text-align:center;',
											typeAhead: true,											
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, 'CNY'], [2, 'RMB'],[3,'DOL']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{xtype: 'textfield',anchor:'100%',id:'zch',labelStyle:'text-align:center;',style:'color:blue;',labelWidth : 60,fieldLabel:'账号', width:200,allowBlank: false},
										{
											id: 'djzclx2',
											anchor:'100%',
											xtype: 'combo',
											width:200,
											style:'color:blue;',
										    fieldLabel: '类型',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '正式账号'], [2, '测试账号']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{
											id: 'level',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
											style:'color:blue;',
										    fieldLabel: '等级',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '普通会员'], [2, 'VIP1'], [3, 'VIP2'], [4, 'VIP3'], [5, 'VIP4']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{
											id: 'nation',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											style:'color:blue;',
										    fieldLabel: '国家',
										    lazyInit: false,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '==全部=='], [2, '']]
											}),
											displayField: 'value',
											valueField: 'key'
										}																			
				        	          ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{xtype: 'textfield',anchor:'96%',id:'nicheng',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'昵称', width:200,allowBlank: false},
										{xtype: 'textfield',anchor:'100%',id:'zczb',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'姓名',width:200},
										{
											id: 'djzclx23',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
											style:'color:blue;',
										    fieldLabel: '性别',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '男'], [2, '女']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{xtype: 'textfield',anchor:'100%',id:'zch132221',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'生日', width:200,allowBlank: false},
										{xtype: 'textfield',anchor:'100%',id:'zch1325454',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'邮箱', width:200,allowBlank: false}
										
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{xtype: 'textfield',anchor:'96%',id:'dainhua',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'电话', width:200},
										{xtype: 'textfield',anchor:'100%',id:'jygm',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'QQ',width:200},
										{
											id: 'djzclx2323',
											anchor:'100%',
											xtype: 'combo',
											width:200,
											style:'color:blue;',
										    fieldLabel: '接收邮件',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '不接收邮件'], [2, '接收邮件']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{xtype: 'displayfield',anchor:'100%',id:'zch154',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;text-align:center;',fieldLabel:'喜爱游戏',value:'EA,PT,SUN', width:200,allowBlank: false},
										{xtype: 'textfield',anchor:'100%',id:'5432345',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'注册时间', width:200,allowBlank: false}
										
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{
											id: 'status',
											anchor:'96%',
											xtype: 'combo',
											width:200,
										    fieldLabel: '状态',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,											
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '挂起'], [2, '正常'],[3,'冻结'],[4,'黑名单'],[5,'作废']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{xtype: 'textfield',anchor:'100%',id:'clrq',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'备注', width:400},
										{
											id: 'level5433',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
											style:'color:blue;',
										    fieldLabel: 'EA登录',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '正常'], [2, '出现L102']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{xtype: 'button',text: '修改',style: 'margin-left:10px',handler: function() {alert('You clicked the button!');}}
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{xtype: 'textfield',anchor:'100%',id:'lxdh',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'新密码',width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zcdz',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'确认密码', width: 200},
										{xtype: 'button',text: '修改',style: 'margin-left:10px',handler: function() {alert('You clicked the button!');}}
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{xtype: 'textfield',anchor:'100%',id:'fdfzr',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'所属代理',width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zcdz1',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'推荐代码', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zhuceip',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'注册IP', width: 200,allowBlank: false},
										{xtype: 'textfield',anchor:'100%',id:'zch1',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'注册网址', width: 200,allowBlank: false},
										{xtype: 'textfield',anchor:'100%',id:'zch14343',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'来源网址', width: 200,allowBlank: false}
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{xtype: 'textfield',anchor:'100%',id:'323',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'注册地址', width: 1000}
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{xtype: 'textfield',anchor:'100%',id:'frlxdh',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'网站余额', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zcdz11',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'冻结余额', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'eawebsite',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'EA网站', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zch15635234545134',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'EA游戏', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zch1344',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'PT网站', width: 200}
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{xtype: 'textfield',anchor:'100%',id:'frlxdh2679',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'SUN网站', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zcdz111',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'体育余额', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'caipiaoyue',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'彩票余额', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zch1653',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'棋牌余额', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zch1444',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'优惠积分', width: 200}
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{xtype: 'textfield',anchor:'96%',id:'frlxdh28439',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'KENO网站', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zcdz1111',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'KENO游戏', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'gdyouxi',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'GD游戏', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zch1522',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'HG游戏', width: 200}
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{
											id: 'eastatus',
											anchor:'96%',
											xtype: 'combo',
											width: 200,
										    fieldLabel: 'EA状态',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,											
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '未激活'], [2, '已激活']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{
											id: 'djzclx',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
											style:'color:blue;',
										    fieldLabel: 'PT状态',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '未激活'], [2, '已激活']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{
											id: 'djzclx123',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
											style:'color:blue;',
										    fieldLabel: 'SUN状态',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '未激活'], [2, '已激活']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{
											id: 'djzclx12343',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
											style:'color:blue;',
										    fieldLabel: 'KENO状态',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '未激活'], [2, '已激活']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{
											id: 'djzclx123435664',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
											style:'color:blue;',
										    fieldLabel: 'GD状态',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,
											allowBlank:false,
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '未激活'], [2, '已激活']]
											}),
											displayField: 'value',
											valueField: 'key'
										}
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{
											id: 'hgstatus90012',
											anchor:'100%',
											xtype: 'combo',
											width: 200,
										    fieldLabel: 'HG状态',
										    lazyInit: false,
											labelStyle:'text-align:center;',
											labelWidth : 60,
											typeAhead: true,											
											mode: 'remote',
											store: new Ext.data.ArrayStore
											({
												fields: [
												            'key',
												            'value'
												        ],
												data: [[1, '未激活'], [2, '已激活']]
											}),
											displayField: 'value',
											valueField: 'key'
										},
										{xtype: 'textfield',anchor:'100%',id:'zcdz5580900',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'PT账户', width: 200},
				        	         ]
				           },
				           {
							   xtype: 'fieldset',
				        	   layout:'hbox',
							   flex: 1,
				        	   border: false,
				        	   items:[
										
										{xtype: 'textfield',anchor:'96%',id:'frlxdh29090',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'存款次数', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zcdz1209',labelStyle:'text-align:center;',labelWidth : 60,fieldLabel:'存款金额', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zch12112',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'提款次数', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zch120304',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'提款金额', width: 200},
										{xtype: 'textfield',anchor:'100%',id:'zch1343422',labelStyle:'text-align:center;',labelWidth : 60,style:'color:blue;',fieldLabel:'有效盈利', width: 200}
				        	         ]
				           }
		            ],
		    renderTo: 'editdiv'
		});
	}	
	//back to gridpanel
	function backToGridPanel()
	{
		//隐藏editdiv
		$("#editdiv").hide();
		//显示griddiv
		$("#griddiv").show();
	}
}


